//
//  testappdelegate.m
//  TTSourceDemo
//
//  Created by apple on 2017/4/24.
//  Copyright © 2017年 ttayaa. All rights reserved.
//

#import "testappdelegate.h"

@implementation testappdelegate

+(void)load{
    
    TTAppDelegateName(@"AppDelegate")
    TTdifferentClassExchangeMethod(@"application:didFinishLaunchingWithOptions:",didFinishLaunching,testappdelegate_application:didFinishLaunchingWithOptions:)
    
    TTdifferentClassExchangeMethod(@"application:didFailToRegisterForRemoteNotificationsWithError:",didFailToRegisterForRemoteNotificationsWithError,testappdelegate_application:didFailToRegisterForRemoteNotificationsWithError:)

}

- (BOOL)testappdelegate_application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
 
    return [self testappdelegate_application:application didFinishLaunchingWithOptions:launchOptions];
}



// 注册deviceToken失败
- (void)testappdelegate_application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{
//    ttLog(@"error -- %@",error);
    
    
    
        [self testappdelegate_application:application didFailToRegisterForRemoteNotificationsWithError:error];
    
    
    
    NSLog(@"%s",__FUNCTION__);
    
}

@end
